package edu.henu.personnel.vo;

import org.springframework.stereotype.Component;

/**
 * @program: PersonnelProject
 * @description: http请求返回最外层的对象
 * @author: zhuyang
 * @create: 2019-04-28 17:34
 */

@Component
public class ResultVO<T> {

    // 错误码
    private Integer code;

    // 提示信息
    private String msg;

    // 返回的具体内容
    private T data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
